import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
 * Write a description of class mano here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class mano extends persona
{
    public GreenfootImage img[];
    public int cont;
    Actor mosco;
    World mundo;
    
   
    public void act() 
    {
       
        //manotazo();
        cambiaImagen();
        
    }    
    public mano()
    {
        
        img = new GreenfootImage [3];
        int i = 0;
        cont=0;
        
        for(int a = 0;a < 3; a++)
        {       
            img[a] = new GreenfootImage("mano"+ i + ".png");
            i++;
        }
    }
    public void cambiaImagen()
    {
        setImage(img[cont]);        
        if(cont == 2)
            cont = 0;
                   
        else
            cont++;
     
      }
    
}
